//
//  ProjectInformationController.m
//  Estate
//
//  Created by heyong on 16/6/22.
//  Copyright © 2016年 ttsx. All rights reserved.
//

#import "ProjectInformationController.h"

@interface ProjectInformationController ()

@end

@implementation ProjectInformationController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"项目信息";
    SegmentViewController *vc = [[SegmentViewController alloc]init];
    vc.height = DEF_SCREEN_HEIGHT - 108;
    vc.titleArray =@[@"基本信息",@"建设单位",@"施工单位",@"检测单位"];
    
    BasicInformationController *basic=[[BasicInformationController alloc]init];
    UnitViewController *unit=[[UnitViewController alloc]init];
    ConstructionController *constru=[[ConstructionController alloc]init];
    CheckInformationController *check =[[CheckInformationController alloc]init];
    
    NSMutableArray *controlArray = [[NSMutableArray alloc]initWithObjects:basic,unit,constru,check,nil];
    //设置选中字体颜色
    vc.titleSelectedColor = [TTTheme defaultManger].defaultColor;
    //设置子视图
    vc.subViewControllers = controlArray;
    
    //标签栏背景色
    vc.headViewBackgroundColor=[UIColor colorWithRed:0.98 green:0.98 blue:0.98 alpha:1.00];
    //非选中状态下标签字体大小
    vc.fontSize=14.;
    //选中下划线颜色
    vc.bottomLineColor=[TTTheme defaultManger].defaultColor;
    
    vc.buttonWidth = DEF_SCREEN_WIDTH/4;
    vc.buttonHeight = 40.;
    [vc initSegment];
    [vc addParentController:self];
}


@end
